package com.atguigu.service;

import com.atguigu.domain.EduCourse;
import com.atguigu.domain.frontvo.CourseFrontVo;
import com.atguigu.domain.frontvo.CourseWebVo;
import com.atguigu.domain.vo.CourseInfoVo;
import com.atguigu.domain.vo.CoursePublishVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
* @author Administrator
* @description 针对表【edu_course(课程)】的数据库操作Service
* @createDate 2024-06-06 10:09:33
*/
public interface EduCourseService extends IService<EduCourse> {

    String saveCourseInfo(CourseInfoVo courseInfoVo);

    CourseInfoVo getCourseInfo(String courseId);

    void updateCourseInfo(CourseInfoVo courseInfoVo);

    CoursePublishVo getPublishCourseInfo(String id);

    void removeCourse(String id);


    Map<String, Object> getCourseFrontList(Page<EduCourse> coursePage, CourseFrontVo courseFrontVo);

    CourseWebVo getBaseCourseInfo(String courseId);
}
